package com.yoyo.yyadsdk.bean.dao;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class PushEntity {

    /**
     * startTime : 开始生效时间
     * endTime : 生效结束时间
     * ruleId : 黑白名单规则id
     * frequency : 周期内展示次数
     * priority : 优先级
     * count : 总展示次数
     * type : 点击类型 (下载、H5、拉活)
     * form : 展现形式(正常、大图、小图)
     * icon : app图标
     * smallIcon : app小图标
     * backgroundUrl : 背景图链接
     * title : 标题
     * subtitle : 副标题
     * appName : 应用名称
     * actionUri : 点击链接
     * canDelete : 是否允许用户点击删除
     */
    @Id(autoincrement = true)
    private Long _id;
    private int id;
    private long startTime;
    private long endTime;
    private int ruleId;
    private int frequency;
    private int priority;
    private int count;
    private int type;
    private int form;
    private String icon;
    private String smallIcon;
    private String backgroundUrl;
    private String title;
    private String subtitle;
    private String appName;
    private String actionUri;
    private int canDelete;
    @Generated(hash = 539181437)
    public PushEntity(Long _id, int id, long startTime, long endTime, int ruleId,
            int frequency, int priority, int count, int type, int form, String icon,
            String smallIcon, String backgroundUrl, String title, String subtitle,
            String appName, String actionUri, int canDelete) {
        this._id = _id;
        this.id = id;
        this.startTime = startTime;
        this.endTime = endTime;
        this.ruleId = ruleId;
        this.frequency = frequency;
        this.priority = priority;
        this.count = count;
        this.type = type;
        this.form = form;
        this.icon = icon;
        this.smallIcon = smallIcon;
        this.backgroundUrl = backgroundUrl;
        this.title = title;
        this.subtitle = subtitle;
        this.appName = appName;
        this.actionUri = actionUri;
        this.canDelete = canDelete;
    }
    @Generated(hash = 732106406)
    public PushEntity() {
    }
    public Long get_id() {
        return this._id;
    }
    public void set_id(Long _id) {
        this._id = _id;
    }
    public int getId() {
        return this.id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public long getStartTime() {
        return this.startTime;
    }
    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }
    public long getEndTime() {
        return this.endTime;
    }
    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }
    public int getRuleId() {
        return this.ruleId;
    }
    public void setRuleId(int ruleId) {
        this.ruleId = ruleId;
    }
    public int getFrequency() {
        return this.frequency;
    }
    public void setFrequency(int frequency) {
        this.frequency = frequency;
    }
    public int getPriority() {
        return this.priority;
    }
    public void setPriority(int priority) {
        this.priority = priority;
    }
    public int getCount() {
        return this.count;
    }
    public void setCount(int count) {
        this.count = count;
    }
    public int getType() {
        return this.type;
    }
    public void setType(int type) {
        this.type = type;
    }
    public int getForm() {
        return this.form;
    }
    public void setForm(int form) {
        this.form = form;
    }
    public String getIcon() {
        return this.icon;
    }
    public void setIcon(String icon) {
        this.icon = icon;
    }
    public String getSmallIcon() {
        return this.smallIcon;
    }
    public void setSmallIcon(String smallIcon) {
        this.smallIcon = smallIcon;
    }
    public String getBackgroundUrl() {
        return this.backgroundUrl;
    }
    public void setBackgroundUrl(String backgroundUrl) {
        this.backgroundUrl = backgroundUrl;
    }
    public String getTitle() {
        return this.title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getSubtitle() {
        return this.subtitle;
    }
    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }
    public String getAppName() {
        return this.appName;
    }
    public void setAppName(String appName) {
        this.appName = appName;
    }
    public String getActionUri() {
        return this.actionUri;
    }
    public void setActionUri(String actionUri) {
        this.actionUri = actionUri;
    }
    public int getCanDelete() {
        return this.canDelete;
    }
    public void setCanDelete(int canDelete) {
        this.canDelete = canDelete;
    }
}
